﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.IO;

using Code2html;

namespace TestProject1
{
    [TestClass]
    public class UnitTest1
    {
        string path = @"C:\Users\Александр\Desktop\Code2html+script_build\Code2html\Code2html";
        string progpath = @"C:\Users\Александр\Desktop\Code2html+script_build\Code2html\Code2html\bin\Debug";
        FormatingModule fm = new FormatingModule();
        StreamReader sr = File.OpenText(@"C:\Users\Александр\Desktop\Code2html+script_build\Code2html\Code2html\test.cs");
        [TestMethod]
        public void TestMethod1()
        {
            string s = fm.Formating(sr, "CS", path, progpath);
            string s2 = File.ReadAllText(@"C:\Users\Александр\Desktop\Code2html+script_build\Code2html\Code2html\test.cs.html");
            Assert.AreEqual(s, s2);
        }
    }
}
